package com.zero.zeroframe.v

import android.content.Context
import android.graphics.Canvas
import androidx.recyclerview.widget.RecyclerView
import android.util.AttributeSet
import android.widget.EdgeEffect

class FullRecyclerView : RecyclerView {
    constructor(context: Context) : super(context)
    constructor(context: Context, attributeSet: AttributeSet) : super(context, attributeSet)
    constructor(context: Context, attributeSet: AttributeSet, defStyle: Int) : super(context, attributeSet, defStyle)

    override fun getBottomFadingEdgeStrength(): Float {
//        return super.getBottomFadingEdgeStrength()
        return 0f
    }
    init {
        edgeEffectFactory = object :EdgeEffectFactory(){
            override fun createEdgeEffect(view: RecyclerView, direction: Int): EdgeEffect {
                return object :EdgeEffect(context){
                    override fun draw(canvas: Canvas?): Boolean {
                        return false
                    }
                }
            }
        }
    }
}
